<!doctype html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>国家智造设计服务云平台</title>
		<meta name="renderer" content="webkit|ie-comp|ie-stand">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<!--<meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8" />-->
		<meta http-equiv="Cache-Control" content="no-siteapp" />
		<link rel="stylesheet" type="text/css" href="css/font.css">
		<link rel="stylesheet" type="text/css" href="css/common.css">
		<link rel="stylesheet" type="text/css" href="css/theme10.min.css">
		<link rel="stylesheet" type="text/css" href="css/index.css"/>
	</head>

	<body class="index">
		<!-- 顶部开始 -->
		<div class="container">
			<div class="logo">
				<a href="./index.html">国家智造·创新设计服务云平台</a>
			</div>
			<ul class="layui-nav right" lay-filter="">
				<li class="layui-nav-item">
					<a href="javascript:;">admin</a>
					<dl class="layui-nav-child">
						<dd>
							<a href="./login.html" class="logout">退出</a>
						</dd>
					</dl>
				</li>
			</ul>
		</div>
		<!-- 顶部结束 -->

		<!-- 左侧菜单开始 -->
		<div class="left-nav noScrollBar">
			<div id="side-nav">
				<ul id="nav"></ul>
			</div>
		</div>
		<!-- 左侧菜单结束 -->

		<!-- 右侧主体开始 -->
		<div class="page-content">
			<div class="layui-tab tab" lay-filter="xbs_tab" lay-allowclose="false">
				<div class="layui-tab-content">
					<div class="layui-tab-item layui-show">
						<iframe src='./pages/member/member.html' frameborder="0" scrolling="yes" class="x-iframe"></iframe>
					</div>
				</div>
			</div>
		</div>
		<!-- 右侧主体结束 -->

		<script src="js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="lib/layui/layui.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/config.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/ajax.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/menu.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/common.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			$(function() {
				layui.use('form', function() {
					var form = layui.form;



					$("#logout").on('click',function () {
						var params = {};

						$.ajax({
							url: cgiMain.applicantLogout,
							dataType: 'json',
							data: params,
							xhrFields: {
								withCredentials: true
							},
							contentType: false,
							type: 'GET',
							cache: false,
							timeout: CFG.TIMEOUT,
							async:false,
							success: function(res) {
								if (res.code== '0000') {
									clearCookie();
									location.href = 'login.html';
								}

							},
							error: function() {}});
					});


				});




				function clearCookie() {
					var keys = document.cookie.match(/[^ =;]+(?=\=)/g);
					if (keys) {
						for (var i = keys.length; i--;) {
							document.cookie = keys[i] + '=0;path=/;expires=' + new Date(0).toUTCString();
							document.cookie = keys[i] + '=0;path=/;domain=' + document.domain + ';expires=' + new Date(0).toUTCString();
							document.cookie = keys[i] + '=0;path=/;domain=kevis.com;expires=' + new Date(0).toUTCString();
						}
					}
				}
			})
		</script>
	</body>

</html>
